package com.hs.security.controller;

import com.hs.security.utils.Constant;
import com.hs.security.utils.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName NoAuthcController
 * @Description TODO
 */
@RestController
public class NoAuthcController {
    @RequestMapping("/nologin")
    public Result nologin(){
        return new Result(Constant.UNAUTHORIZED.getCode(),Constant.UNAUTHORIZED.getMsg(), null);
    }

    @RequestMapping("/nopower")
    public Result nopower(){
        return new Result(Constant.UNAUTHORIZED.getCode(),Constant.UNAUTHORIZED.getMsg(),null);
    }
}
